package com.itheima.myfile;

import java.io.File;
import java.io.IOException;

public class Demo1 {
    public static void main(String[] args) throws IOException {
        File file1 = new File("D:\\黑马课件\\aaa\\bbb");
        System.out.println("file1 = " + file1);
        File file2 = new File("D:\\黑马课件","b.txt");
        System.out.println("file2 = " + file2);
        boolean newFile = file2.createNewFile();
        System.out.println("newFile = " + newFile);
        boolean mkdirs = file1.mkdirs();
        System.out.println("mkdirs = " + mkdirs);
    }
}
